import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DataCollectComponent } from './data-collect/data-collect.component';
import { DatashowComponent } from './datashow/datashow.component';

const routes: Routes = [
  {path: 'data-collect', component:DataCollectComponent},
  {path: 'data-show', component:DatashowComponent},

];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
